﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HoangPhap.Bussiness
{
    public class CharityProgramImage
    {
        public int DeleteById(int id)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramImagesDeleteById(id);
        }

        public int DeleteDynamic(System.String whereCondition)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramImagesDeleteDynamic(whereCondition);
        }

        public int Insert(System.Int32 charityProgramId, System.String imagesUrl, System.DateTime createdDate, System.DateTime eventDate, System.Int32 editorId, System.Int32 status, ref System.Int64 id)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramImagesInsert(charityProgramId, imagesUrl, createdDate, eventDate, editorId, status, ref  id);
        }

        public int InsertUpdate(System.Int32 id, System.Int32 charityProgramId, System.String imagesUrl, System.DateTime createdDate, System.DateTime eventDate, System.Int32 editorId, System.Int32 status)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramImagesInsertUpdate(id,charityProgramId, imagesUrl, createdDate, eventDate, editorId, status);
        }

        public int Update(System.Int32 id, System.Int32 charityProgramId, System.String imagesUrl, System.DateTime createdDate, System.DateTime eventDate, System.Int32 editorId, System.Int32 status)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramImagesUpdate(id, charityProgramId, imagesUrl, createdDate, eventDate, editorId, status);
        }
    }
}
